package com.csxy.hxl.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Schema(name = "EduVideo对象", description = "EduVideo对象")
public class EduVideo implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(name = "视频ID")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @Schema(name = "课程ID")
    private String courseId;
    @Schema(name = "章节ID")
    private String chapterId;
    @Schema(name = "节点名称")
    private String title;
    @Schema(name = "云端视频资源")
    private String videoSourceId;
    @Schema(name = "原始文件名称")
    private String videoOriginalName;
    @Schema(name = "排序字段")
    private Integer sort;
    @Schema(name = "是否可以试听")
    private Boolean isFree;
    @Schema(name = "视频时长")
    private Float duration;
    @Schema(name = "播放次数")
    private Long playCount;

    @Schema(name = "Empty未上传 Transcoding转码中  Normal正常")
    private String status;

    @Schema(name = "视频源文件大小")
    private Long size;

    @Schema(name = "乐观锁")
    private Integer version;

    @Schema(name = "创建时间",example = "2021-07-05 09:05:05")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @Schema(name = "更新时间",example = "2021-07-05 09:05:05")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

}